<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLogBannedsTable extends Migration
{
    /**角色禁言日志记录表
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('log_banneds', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('server_id')->comment('服务器id');
            $table->bigInteger('player_id')->comment('角色id');
            $table->string('player_name', 30)->comment('玩家名');
            $table->string('delay_time', 30)->comment('解禁时间');
            $table->string('admin_name', 30)->comment('管理员名');
            $table->string('client_ip', 30)->comment('客户端ip');
            $table->tinyInteger('status')->default(0)->comment('0禁止，1解禁');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('log_banneds');
    }
}
